package com.ruoyi.supplier.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 订单明细对象 tb_order_detail
 * 
 * @author ruoyi
 * @date 2021-02-16
 */
public class TbOrderDetail extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 订单表ID */
    @Excel(name = "订单表ID")
    private Long orderId;

    private Long priceId;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String productName;

    /** 商品表ID */
    @Excel(name = "商品表ID")
    private Long productId;

    /** 规格键名 */
    @Excel(name = "规格项")
    private String itemName;

    /** 计量单位 */
    @Excel(name = "计量单位")
    private Long measurement;

    /** 数量 */
    @Excel(name = "数量")
    private Long qty;

    /** 零售价格 */
    @Excel(name = "零售价格")
    private BigDecimal marketPrice;

    /** 生产日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "生产日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date productDate;

    /** 保质期限 */
    @Excel(name = "保质期限")
    private Long shelfLife;

    /** 金额 */
    @Excel(name = "金额")
    private BigDecimal amount;

    /** 商品分类 */
    @Excel(name = "商品分类")
    private String typeName;

    /** 产地 */
    @Excel(name = "产地")
    private String origin;


    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }

    public Long getPriceId() {
        return priceId;
    }

    public void setPriceId(Long priceId) {
        this.priceId = priceId;
    }

    public void setProductName(String productName)
    {
        this.productName = productName;
    }

    public String getProductName() 
    {
        return productName;
    }
    public void setProductId(Long productId) 
    {
        this.productId = productId;
    }

    public Long getProductId() 
    {
        return productId;
    }

    public String getItemName() {
        return itemName;
    }

    public void setItemName(String itemName) {
        this.itemName = itemName;
    }

    public void setMeasurement(Long measurement)
    {
        this.measurement = measurement;
    }

    public Long getMeasurement() 
    {
        return measurement;
    }
    public void setQty(Long qty) 
    {
        this.qty = qty;
    }

    public Long getQty() 
    {
        return qty;
    }

    public BigDecimal getMarketPrice() {
        return marketPrice;
    }

    public void setMarketPrice(BigDecimal marketPrice) {
        this.marketPrice = marketPrice;
    }

    public void setProductDate(Date productDate)
    {
        this.productDate = productDate;
    }

    public Date getProductDate() 
    {
        return productDate;
    }
    public void setShelfLife(Long shelfLife) 
    {
        this.shelfLife = shelfLife;
    }

    public Long getShelfLife() 
    {
        return shelfLife;
    }
    public void setAmount(BigDecimal amount) 
    {
        this.amount = amount;
    }

    public BigDecimal getAmount() 
    {
        return amount;
    }


    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public String getOrigin() {
        return origin;
    }

    public void setOrigin(String origin) {
        this.origin = origin;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("orderId", getOrderId())
            .append("productName", getProductName())
            .append("productId", getProductId())
            .append("itemName", getItemName())
            .append("measurement", getMeasurement())
            .append("qty", getQty())
            .append("productDate", getProductDate())
            .append("shelfLife", getShelfLife())
            .append("amount", getAmount())
            .append("typeName", getTypeName())
            .append("origin", getOrigin())
            .toString();
    }
}
